package net.wanho.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.wanho.po.Supply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @author Administrator
* @description 针对表【supply(供货商表)】的数据库操作Mapper
* @createDate 2025-04-28 11:41:58
* @Entity net.wanho.po.Supply
*/
public interface SupplyMapper extends BaseMapper<Supply> {

    @Select("SELECT supply_name FROM supply WHERE supply_id = #{supplyId}")
    String selectSupplyName(Integer supplyId);

    @Select("SELECT supply_id FROM supply WHERE supply_name = #{supplyName}")
    Integer selectIdBySupplyName(String supplyName);

    Page<Supply> selectByPage(Page<Supply> page,@Param("ew") QueryWrapper<Supply> wrapper);
}




